{include file='default/base/mall_top'/}
<link rel="stylesheet" href="{$Think.HOME_SITE_ROOT}/css/home.css">
<div class="header-login clearfix">
    <div class="w1200">
        <div class="logo">
            <a href="{$Think.HOME_SITE_URL}"><img src="{:ds_get_pic(ATTACH_COMMON,$Think.config.ds_config.site_logo)}"/></a>
        </div>
    </div>
</div>
        <link rel="stylesheet" href="{$Think.HOME_SITE_ROOT}/css/seller.css">
        <script language="JavaScript" type="text/javascript">
            $(document).ready(function () {

                //登陆表单验证
                $("#form_login").validate({
                    errorPlacement: function (error, element) {
                        element.prev(".repuired").append(error);
                    },
                    onkeyup: false,
                    rules: {
                        seller_name: {
                            required: true
                        },
                        member_password: {
                            required: true
                        }
                        {if $Think.config.ds_config.captcha_status_login == '1'},
                        captcha_normal: {
                            required: true,
                            remote: {
                                url: "{:url('Seccode/check',['reset'=>'false'])}",
                                type: 'get',
                                data: {
                                    captcha: function () {
                                        return $('#captcha_normal').val();
                                    }
                                },
                                complete: function (data) {
                                    if (data.responseText == 'false') {
                                        document.getElementById('sms_codeimage').src = "{:url('Seccode/makecode')}"+"?" + new Date().getTime();
                                    }
                                }
                            }
                        }
                        {/if}
                    },
                    messages: {
                        seller_name: {
                            required: "<i class='iconfont'>&#xe64c;</i>{$Think.lang.login_index_username_isnull}"
                        },
                        member_password: {
                            required: "<i class='iconfont'>&#xe64c;</i>{$Think.lang.login_index_password_isnull}"
                        }
                         {if $Think.config.ds_config.captcha_status_login == '1'},
                        captcha_normal: {
                            required: '<i class="iconfont" title="{$Think.lang.login_index_input_checkcode}">&#xe64c;</i>{$Think.lang.login_index_input_checkcode}',
                            remote: '<i class="iconfont" title="{$Think.lang.login_index_wrong_checkcode}">&#xe64c;</i>{$Think.lang.login_index_wrong_checkcode}'
                        }
                        {/if}
                    }
                });
                //Hide Show verification code
                $("#hide").click(function () {
                    $(".code").fadeOut("slow");
                });
                $("#captcha").focus(function () {
                    $(".code").fadeIn("fast");
                });

            });
        </script>
        <div class="w1200">
            <div class="dssc-login-container">
                <div class="dssc-login-title">
                    <h2>{$Think.lang.business_management_center}</h2>
                    <span>{$Think.lang.business_name_application}<br/>{$Think.lang.universal_password_mall_users}</span>
                </div>
                <form id="form_login" action="" method="post" >
                    <div class="input">
                        <label>{$Think.lang.login_index_username}</label>
                        <span class="repuired"></span>
                        <input name="seller_name" type="text" autocomplete="off" class="text" autofocus>
                        <span class="ico"><i class="iconfont">&#xe702;</i></span> </div>
                    <div class="input">
                        <label>{$Think.lang.sellerlogin_password}</label>
                        <span class="repuired"></span>
                        <input name="member_password" type="password" autocomplete="off" class="text">
                        <span class="ico"><i class="iconfont">&#xe67b;</i></span> 
                    </div>
                    {if $Think.config.ds_config.captcha_status_storelogin == '1'}
                    <div class="input codeimage clearfix">
                        <label>{$Think.lang.ds_checkcode}</label>
                        <span class="repuired"></span>
                        <input type="text" id="captcha_normal" name="captcha_normal" class="text fl" maxlength="4" style="width:120px;"/>
                        <span class="span fl">
                            <img style="position: absolute;top: 0;height:42px;width: 138px" src="{:url('Seccode/makecode')}" title="{$Think.lang.login_index_change_checkcode}" id="sms_codeimage" />
                            <a class="makecode" href="javascript:void(0);" onclick="javascript:document.getElementById('sms_codeimage').src='{:url('Seccode/makecode')}'+'?'+(new Date().getTime());;">{$Think.lang.wrong_checkcode_change}</a>
                        </span>
                         <span class="ico"><i class="iconfont">&#xe67b;</i></span> 
                    </div>
                    {/if}
                    <div class="input">
                        <input type="submit" class="login-submit" value="{$Think.lang.merchant_login}">
                    </div>
                    <div class="mt10 fr"><a href="{$Think.HOME_SITE_URL}" title="{$Think.lang.return_home_page}">{$Think.lang.return_home_page}</a></div>
                </form>
            </div>
        </div>
        <div class="dssc-login-bg">
        </div>
        
{include file='default/base/mall_footer'/}